﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};
	
	var auditData = Jxstar.findComboData('audit');
	var moneytypeData = Jxstar.findComboData('moneytype');
	var items = [{
		width:'97%',
		border:false,
		layout:'form',
		autoHeight:true,
		xtype:'container',
		style:'padding:5 10 5 10;',
		items:[{
			anchor:'100%',
			border:false,
			xtype:'container',
			layout:'column',
			autoHeight:true,
			items:[{
				border:false,
				xtype:'container',
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'trigger', fieldLabel:'项目编号', name:'pur_say_chk__project_code',
						anchor:'100%', triggerClass:'x-form-search-trigger',
						maxLength:20, allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', editable:false,
						onTriggerClick: function() {
							var selcfg = {pageType:'combogrid', nodeId:'project_select', layoutPage:'', sourceField:';', targetField:';', whereSql:"project_status = '2' and projbao_type <>'2'", whereValue:'', whereType:'', isSame:'1', isShowData:'1', isMoreSelect:'0',isReadonly:'1',queryField:'',likeType:'',fieldName:'pur_say_chk.project_code'};
							JxSelect.createSelectWin(selcfg, this, 'node_pur_say_chk_form');
						}},
					{xtype:'textfield', fieldLabel:'项目名称', name:'pur_say_chk__project_name', readOnly:true, anchor:'100%', maxLength:100},
					{xtype:'numberfield', decimalPrecision:2, fieldLabel:'预算金额(万元)', name:'pur_say_chk__project_money', readOnly:true, anchor:'100%', maxLength:12},
					{xtype:'textfield', fieldLabel:'实施单位', name:'pur_say_chk__dept_name', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'主管部门', name:'pur_say_chk__done_deptname', readOnly:true, anchor:'100%', maxLength:50},
					{xtype:'textfield', fieldLabel:'申请人', name:'pur_say_chk__apply_user', defaultval:'fun_getUserName()', readOnly:true, anchor:'100%', maxLength:20},
					{xtype:'hidden', fieldLabel:'主键', name:'pur_say_chk__say_chkid', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'实施单位ID', name:'pur_say_chk__dept_id', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'申请人ID', name:'pur_say_chk__apply_userid', defaultval:'fun_getUserId()', anchor:'100%'}
				]
			},{
				border:false,
				xtype:'container',
				columnWidth:0.495,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'combo', fieldLabel:'记录状态', name:'pur_say_chk__auditing',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: auditData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: auditData[0][0]},
					{xtype:'combo', fieldLabel:'项目类别', name:'pur_say_chk__money_type',
						anchor:'100%', readOnly:true, editable:false,
						store: new Ext.data.SimpleStore({
							fields:['value','text'],
							data: moneytypeData
						}),
						emptyText: jx.star.select,
						mode: 'local',
						triggerAction: 'all',
						valueField: 'value',
						displayField: 'text',
						value: moneytypeData[0][0]},
					{xtype:'textfield', fieldLabel:'项目批复文号', name:'pur_say_chk__check_fileno', readOnly:true, anchor:'100%', maxLength:100},
					{xtype:'textfield', fieldLabel:'项目批复名称', name:'pur_say_chk__check_name', readOnly:true, anchor:'100%', maxLength:150},
					{xtype:'textfield', fieldLabel:'项目负责人', name:'pur_say_chk__project_user', readOnly:true, anchor:'100%', maxLength:20},
					{xtype:'datefield', fieldLabel:'申请日期', name:'pur_say_chk__apply_date', defaultval:'fun_getToday()', format:'Y-m-d', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'授权形式', name:'pur_say_chk__auth_type', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'项目负责人ID', name:'pur_say_chk__project_userid', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'项目ID', name:'pur_say_chk__project_id', anchor:'100%'},
					{xtype:'hidden', fieldLabel:'主管部门ID', name:'pur_say_chk__done_deptid', anchor:'100%'}
				]
			}
			]
		},{
			anchor:'100%',
			border:false,
			xtype:'container',
			layout:'column',
			autoHeight:true,
			items:[{
				border:false,
				xtype:'container',
				columnWidth:0.99,
				layout:'form',
				style: 'padding-left:10px;',
				items:[
					{xtype:'textarea', fieldLabel:'项目主要内容（含实施周期及概算造价等）', name:'pur_say_chk__project_content', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', width:'100%', height:48, maxLength:2000},
					{xtype:'textarea', fieldLabel:'拟邀请供应商名单', name:'pur_say_chk__provider_names', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', width:'100%', height:48, maxLength:200},
					{xtype:'textarea', fieldLabel:'邀请理由', name:'pur_say_chk__invite_cause', width:'100%', height:48, maxLength:200},
					{xtype:'textarea', fieldLabel:'谈判小组(人数、专业、产生办法)', name:'pur_say_chk__teamdet_content', allowBlank:false, labelStyle:'color:#0000FF;', labelSeparator:'*', width:'100%', height:48, maxLength:200}
				]
			}
			]
		}]
	}];
	
	config.param = {
		items: items,
		funid: 'pur_say_chk'
	};

	
	
	
	return new Jxstar.FormNode(config);
}